﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Press.MVC.Web.Views.User.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    
    <div class="contentTextDisplay">
        
        <%=Notify.Error(ViewData.Model.LoginMessage) %>
        <%using (Html.Form<Press.MVC.Web.Controllers.UserController>(x => x.Authenticate())) { %>
         <table>
            <tr>
                <td>Login</td>
                <td><%=Html.TextBox("username")%>
                </td>
            </tr>
             <tr>
                <td>Password</td>
                <td><%=Html.Password("password")%></td>
            </tr>     
             <tr>
                <td colspan="2"><%=Html.CheckBox("remember", "Remember Me", "1", false)%></td>
                
            </tr>  
            <tr>
                <td colspan="2">
                    <%=Html.SubmitButton("btnLogin", "Login")%>
                </td>
            </tr>     
         </table>
         <%} %>
</div>

</asp:Content>
